<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<title>Days in Month</title>
</head>
<body>
	<script type="text/javascript">
		var today = new Date();
		
		var month = 1;
		var day = today.getDate();
		var year = 2400;
		
		
		
		switch(month)
		{
			case 1 :{
				if(year%4 == 0 && year%100 !=0 || year%400 == 0)
					{
					document.write(29);
					break;
					}
				else document.write(28);
				break;
			}
		
			case 3:{
				document.write(30);
				break;
			} 
		
			case 5:{
				document.write(30);
				break;
			}
			
			case 8:{
				document.write(30);
				break;
			}
		
			case 10:{
				document.write(30);
				break;
			}
			
			default:{
				document.write(31);
				break;
			}
		}
		
	</script>
</body>
</html>